package com.ruoyi.object.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 民主党派成员对象 object_democratic_party
 *
 * @author Lewis
 * @date 2022-05-11
 */
public class ObjectDemocraticParty extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Long gender;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String contact;

    /**
     * 民族
     */
    @Excel(name = "民族")
    private String nation;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String position;

    /**
     * 出生年月
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 参加工作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "参加工作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinWorkDate;

    /**
     * 党派
     */
    @Excel(name = "党派")
    private String party;

    /**
     * 学历
     */
    @Excel(name = "学历")
    private String education;

    /**
     * 职务
     */
    @Excel(name = "职务")
    private String employer;

    /**
     * 本人身份
     */
    @Excel(name = "本人身份")
    private String identity;

    /**
     * 政治安排情况
     */
    @Excel(name = "政治安排情况")
    private String politicalArrangement;

    /**
     * 所属乡镇
     */
    @Excel(name = "所属乡镇")
    private Long deptId;

    /**
     * 政治面貌
     */
    @Excel(name = "政治面貌")
    private String politicalStatus;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String resume;

    /**
     * 照片
     */
    @Excel(name = "照片")
    private String photo;

    /**
     * 党内职务
     */
    @Excel(name = "党内职务")
    private String partyWork;

    /**
     * 加入党派时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入党派时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinPartyDate;

    @Excel(name = "乡镇")
    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setGender(Long gender) {
        this.gender = gender;
    }

    public Long getGender() {
        return gender;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContact() {
        return contact;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getNation() {
        return nation;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getPosition() {
        return position;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setJoinWorkDate(Date joinWorkDate) {
        this.joinWorkDate = joinWorkDate;
    }

    public Date getJoinWorkDate() {
        return joinWorkDate;
    }

    public void setParty(String party) {
        this.party = party;
    }

    public String getParty() {
        return party;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getEducation() {
        return education;
    }

    public void setEmployer(String employer) {
        this.employer = employer;
    }

    public String getEmployer() {
        return employer;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getIdentity() {
        return identity;
    }

    public void setPoliticalArrangement(String politicalArrangement) {
        this.politicalArrangement = politicalArrangement;
    }

    public String getPoliticalArrangement() {
        return politicalArrangement;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setPoliticalStatus(String politicalStatus) {
        this.politicalStatus = politicalStatus;
    }

    public String getPoliticalStatus() {
        return politicalStatus;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public String getResume() {
        return resume;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPartyWork(String partyWork) {
        this.partyWork = partyWork;
    }

    public String getPartyWork() {
        return partyWork;
    }

    public void setJoinPartyDate(Date joinPartyDate) {
        this.joinPartyDate = joinPartyDate;
    }

    public Date getJoinPartyDate() {
        return joinPartyDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("gender", getGender())
                .append("contact", getContact())
                .append("nation", getNation())
                .append("position", getPosition())
                .append("birthday", getBirthday())
                .append("joinWorkDate", getJoinWorkDate())
                .append("party", getParty())
                .append("education", getEducation())
                .append("employer", getEmployer())
                .append("identity", getIdentity())
                .append("politicalArrangement", getPoliticalArrangement())
                .append("deptId", getDeptId())
                .append("politicalStatus", getPoliticalStatus())
                .append("resume", getResume())
                .append("photo", getPhoto())
                .append("partyWork", getPartyWork())
                .append("joinPartyDate", getJoinPartyDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("deptName", getDeptName())
                .toString();
    }
}
